<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>React Standlone</title>
    </head>
    <body>
        <div id="root"></div>
        <script
            crossorigin
            src="https://unpkg.com/react@17/umd/react.development.js"
        ></script>
        <script
            crossorigin
            src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"
        ></script>
        <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
        <script type="text/babel">
            const App = () => {
                const [count, setCount] = React.useState(0);
                return (
                    <div className="app">
                        <h1>Hello React.</h1>
                        <p>{count}</p>
                        <button onClick={() => setCount(count + 1)}>
                            👍 + 1
                        </button>
                    </div>
                );
            };
            ReactDOM.render(<App />, document.getElementById('root'));
        </script>
    </body>
</html>
